package com.tj.template.application.trade.input;

import com.fqgj.common.api.ParamsObject;
import com.fqgj.common.utils.StringUtils;
import com.tj.bo.common.conf.util.ParamsValidateUtil;

/**
 * @program: binary-option
 * @description
 * @author: binary
 * @create: 2020-06-24 09:45
 **/
public class MarketQueryRequest extends ParamsObject {

    private String productCode;

    public String getProductCode() {
        return productCode;
    }

    public MarketQueryRequest setProductCode(String productCode) {
        this.productCode = productCode;
        return this;
    }

    @Override
    public void validate() {
        ParamsValidateUtil.checkParams(StringUtils.isEmpty(productCode), "productCode can not be empty");
    }
}
